<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
  
  <!-- This is the start (home) page of the application. It just displays
  a message. Not very exciting... improvement is possible. -->
  <h:head>
    <title>IGNORED</title>
  </h:head>
  <h:body>
    <ui:composition template="/templates/forum_layout.xhtml">
      <ui:define name="content">
          <h2>#{strings.forumny}</h2>
          <p>#{strings.foruminfo}</p>
          
          <h:form>
              <b> #{strings.forumtopic} </b>
                <br />
                <h:inputText id="nyTema" value="#{forumbean.tema}" />
                <br />
                <h:inputTextarea id="inkom" rows="15" cols="50" value="#{forumbean.innhold}" /> <br />
                <br />
                <h:commandButton value="Send" action="#{forumbean.saveForum()}"></h:commandButton>
                <h:commandButton value="Tilbake" action="forum"></h:commandButton>
          </h:form>
          
      </ui:define>
    </ui:composition>
  </h:body>
</html>